package com.szh.shenzhihaodemo;

import android.content.Intent;
import android.os.Bundle;
import android.widget.ListView;

import androidx.appcompat.app.AppCompatActivity;


import com.szh.shenzhihaodemo.Adapter.ManagerAdapter;
import com.szh.shenzhihaodemo.Bean.UserInfoBean;

import java.util.List;

public class UserManagerActivity extends AppCompatActivity {
   ListView userLv;
    List<UserInfoBean> mDatas;
    private ManagerAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_manager);
        userLv=findViewById(R.id.manager_lv);
        Intent intent = getIntent();
        mDatas= (List<UserInfoBean>) intent.getSerializableExtra("datas");
        adapter = new ManagerAdapter(this, mDatas);
        userLv.setAdapter(adapter);
        adapter.notifyDataSetChanged();
    }
}
